|
![](/i/fill.gif) |
Jan Walzer wrote:
>
> I thought the media-code could be used for that, just instead of calculating
> the color of the "current particle" change the direction-vector of the
> traced ray ???
Well, I am no coder. But if I understand correctly how media works, the problem
is as follows:
To calculate the color of media along a particular ray, first the points are
found where the ray enters and exits the object. Between these points the ray is
divided into a specified number of intervals, and a (variable) number of samples
is taken within each interval.
This method relies upon the ray traversing the volume in a straight line, from
enter to exit. You can probably see why this wouldn't work if the ray were to
curve in an (unpredictable) manner.
--
Margus Ramst
Personal e-mail: mar### [at] peak edu ee
TAG (Team Assistance Group) e-mail: mar### [at] tag povray org
Post a reply to this message
|
![](/i/fill.gif) |